const express = require('express')
const app = express()

app.set('secret','sadmlan123on@faslnm@#')
app.use(express.json())
app.use(require('cors')())

require('./plugins/db')(app)
require('./routes/admin')(app)

app.use('/uploads',express.static(__dirname + '/uploads'))


app.listen('3000',function(){
  console.log('app is running on port 3000')
})



